import request from '@/utils/request'

export function getPlatformList(query) {
  return request({
    url: '/popularize/platform/getList',
    method: 'post',
    data: query
  })
}

export function getPlatformDetail(id) {
  return request({
    url: '/popularize/platform/getDetail',
    method: 'post',
    data: id
  })
}

export function savePlatform(id) {
  return request({
    url: '/popularize/platform/save',
    method: 'post',
    data: id
  })
}

export function removePlatformByID(id) {
  return request({
    url: '/popularize/platform/remove',
    method: 'post',
    data: id
  })
}

export function changePlatformStatusByID(id) {
  return request({
    url: '/popularize/platform/change-status',
    method: 'post',
    data: id
  })
}

export function getPlatformAvabile() {
  return request({
    url: '/popularize/platform/getAvailable',
    method: 'post'
  })
}

